﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ubiety.Dns.Core.Records.NotUsed;

namespace Learn.Repository.DbContexts
{
    internal class MySqlConnectionPool
    {
        public static string GetConnectionString(SqlConnectionType connectionType) 
        {
            string connectionString = "Database=learndb;Server=192.168.254.132;Port=3306;UserId=learn_user;Password=learn_user;";
            switch (connectionType)
            {
                case SqlConnectionType.MySqlRead:
                    connectionString = "Database=learndb;Server=192.168.254.132;Port=3306;UserId=learn_user;Password=learn_user;";
                    break;
                case SqlConnectionType.MySqlWrite:
                    connectionString = "Database=learndb;Server=192.168.254.132;Port=3306;UserId=learn_user;Password=learn_user;";
                    break;
                default:
                    break;
            }

            return connectionString;
        }

    }

    internal enum SqlConnectionType
    {
        MySqlRead,
        MySqlWrite
    }
}
